package com.cq.hd.member.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 次卡下单流水表
 * </p>
 *
 * @author mYunYu
 * @since 2023-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_member_card_bill")
@ApiModel(value="TbMemberCardBillPo对象", description="次卡下单流水表")
public class TbMemberCardBillPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "次卡id")
    @TableField("card_id")
    private Long cardId;

    @ApiModelProperty(value = "下单商家id")
    @TableField("order_business_id")
    private Long orderBusinessId;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "次卡名称")
    @TableField("card_name")
    private String cardName;

    @ApiModelProperty(value = "次卡费用")
    @TableField("card_cost")
    private BigDecimal cardCost;

    @ApiModelProperty(value = "支付方式(1-微信，2-网银对公)")
    @TableField("pay_type")
    private Integer payType;

    @ApiModelProperty(value = "支付状态(1-待支付,2-支付成功，3-支付失败)")
    @TableField("pay_state")
    private Integer payState;

    @ApiModelProperty(value = "支付失败原因")
    @TableField("pay_fail_reason")
    private String payFailReason;

    @ApiModelProperty(value = "活动发布次数")
    @TableField("active_count")
    private Integer activeCount;

    @ApiModelProperty(value = "剩余活动发布次数")
    @TableField("remain_active_count")
    private Integer remainActiveCount;

    @ApiModelProperty(value = "第三方流水号")
    @TableField("return_no")
    private String returnNo;

    @ApiModelProperty(value = "下单时间")
    @TableField("order_time")
    private LocalDateTime orderTime;

    @ApiModelProperty(value = "支付时间")
    @TableField("pay_time")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "到账时间")
    @TableField("arrive_time")
    private LocalDateTime arriveTime;

    @ApiModelProperty(value = "预下单订单id")
    @TableField("pre_order_id")
    private String preOrderId;

    @ApiModelProperty(value = "请求日期")
    @TableField("hf_req_date")
    private String hfReqDate;

    @ApiModelProperty(value = "请求流水号")
    @TableField("hf_req_seq_id")
    private String hfReqSeqId;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
